package com.jmlee.mapper;

import com.jmlee.pojo.Orders;
import com.jmlee.vo.OrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author jmLee
 * @Date 2021/3/11 16:05
 * @Version 1.0
 */
public interface OrdersMapper {

    Long insertOrder(Orders orders);

    // 主要用于取消过期未支付的订单
    OrderVO selectUnpayOrder(Long orderId);

    // 查看某个用户的订单信息
    List<OrderVO> selectUserOrder(@Param("userId") Long userId, @Param("orderStatus") Integer orderStatus);

}
